<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>主页</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../css/mui.css"/>
    <link rel="stylesheet" type="text/css" href="../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../css/main_p.css"/>
    <link rel="stylesheet" type="text/css" href="../css/vm.extend.css"/>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/min.js"></script>
    <script type="text/javascript" src="../script/jq.min.js"></script>
    <script type="text/javascript" src="../script/vue.min.js"></script>

</head>
<body class="pull_new_business">

<article style="height: 50%;padding: 1px !important;width: 100%;margin-bottom: 15px;">
    <a href="#">
        <img style="height: 100%;" src="../image/logo_b.png">
    </a>
</article>

<article style="height: 23%;padding: 1px !important;margin-bottom: 15px;" onclick="go_add_paotui_order()">
    <a href="#">
        <img style="height: 100%;" src="../image/paotui.jpg">
    </a>
</article>

<article style="height: 23%;padding: 1px !important;margin-bottom: 15px;" onclick="go_add_waimai_order()">
    <a href="#">
        <img style="height: 100%;" src="../image/waimai.jpg">
    </a>
</article>

</body>
<script type="text/javascript">

    //跑腿
    function go_add_paotui_order() {
        api.openFrame({
            name: 'add_order',
            url: '../html/add_order.html',
            bounces: false,
            pageParam: {
                usrname: usrname,
                password: password
            },
            rect: {
                x: 0,
                w: 'auto'
            }
        });
    }

    //外卖
    function go_add_waimai_order() {
        api.openFrame({
            name: 'add_waimai_order',
            url: '../html/add_waimai_order.html',
            bounces: false,
            pageParam: {
                usrname: usrname,
                password: password
            },
            rect: {
                x: 0,
                w: 'auto'
            }
        });
    }

    $(document).ready(function () {


    });

    var usrname = "";
    var password = "";
    apiready = function () {
        var deviceId = api.deviceId;//设备编码
        usrname = api.pageParam.usrname;
        password = api.pageParam.password;
        api.closeFrame({name: 'login'});
    }

</script>

</html>
